package com.admin.client.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * (CoreNpcRanks)表实体类
 *
 * @author cxy
 * @since 2025-01-09 10:28:28
 */
@ApiModel("$tableInfo.comment")
@ColumnWidth(25)//列宽
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = true)
public class CoreNpcRanks extends Model<CoreNpcRanks> {// swagger2,mybatis-plus
    ///////////////////////////////////////////////////////////////////////////////////////////////////////// 生成实体字段
    @TableId(type = IdType.INPUT)
    @ApiModelProperty("npc队伍id")
    @ExcelProperty({"npc队伍id","id"})
    private Long id;
    
    @ApiModelProperty("npc队伍名字")
    @ExcelProperty({"npc队伍名字","name"})
    private String name;
    
    @ApiModelProperty("ncp武将1")
    @ExcelProperty({"ncp武将1","npcHeroId1"})
    private Long npcHeroId1;
    
    @ApiModelProperty("npc武将1 带兵数量")
    @ExcelProperty({"npc武将1 带兵数量","armyCount1"})
    private Long armyCount1;
    
    @ApiModelProperty("ncp武将2")
    @ExcelProperty({"ncp武将2","npcHeroId2"})
    private Long npcHeroId2;
    
    @ApiModelProperty("ncp武将2 带兵数量")
    @ExcelProperty({"ncp武将2 带兵数量","armyCount2"})
    private Long armyCount2;
    
    @ApiModelProperty("ncp武将3")
    @ExcelProperty({"ncp武将3","npcHeroId3"})
    private Long npcHeroId3;
    
    @ApiModelProperty("ncp武将3 带兵数量")
    @ExcelProperty({"ncp武将3 带兵数量","armyCount3"})
    private Long armyCount3;
    
    ///////////////////////////////////////////////////////////////////////////////////////////////////////// 序列化版本号
    @TableField(exist = false)
    private static final long serialVersionUID = -12963006754115323L;
    /////////////////////////////////////////////////////////////////////////////////////////////////////////// 获取主键值
    @Override
    public Serializable pkVal() {
        return this.id;
    }
    ///////////////////////////////////////////////////////////////////////////////////////////////////////  基础数据初始化
    public CoreNpcRanks init() {
        return this;
    }
    /////////////////////////////////////////////////////////////////////////////////////////////////////////// 领域业务
}

